3cd50672f71813a847054e5d6ba1894fda0e5dec,src/test/java/org/apache/commons/csv/CSVFormatTest.java,CSVFormatTest,testQuoteCharSameAsCommentStartThrowsExceptionForWrapperType,#,281

Before Change


    @Test(expected = IllegalStateException.class)
    public void testQuoteCharSameAsCommentStartThrowsExceptionForWrapperType() {
        // Cannot assume that callers won't use different Character objects
        CSVFormat.DEFAULT.withQuoteChar(new Character('!')).withCommentStart('!').validate();
    }

    @Test(expected = IllegalStateException.class)

After Change


    @Test(expected = IllegalArgumentException.class)
    public void testQuoteCharSameAsCommentStartThrowsExceptionForWrapperType() {
        // Cannot assume that callers won't use different Character objects
        CSVFormat.DEFAULT.withQuoteChar(new Character('!')).withCommentStart('!');
    }

    @Test//(expected = IllegalArgumentException.class)